using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ExposeRequest : GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ExposeRequest, ExposeRequest.Builder>
		{
			private bool resultIsReadOnly;
			private ExposeRequest result;
			protected override ExposeRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ExposeRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ExposeRequest DefaultInstanceForType
			{
				get
				{
					return ExposeRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public string UserName
			{
				get
				{
					return this.result.UserName;
				}
				set
				{
					this.SetUserName(value);
				}
			}
			public uint Scene
			{
				get
				{
					return this.result.Scene;
				}
				set
				{
					this.SetScene(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public string AlbumPhotoId
			{
				get
				{
					return this.result.AlbumPhotoId;
				}
				set
				{
					this.SetAlbumPhotoId(value);
				}
			}
			public uint AlbumType
			{
				get
				{
					return this.result.AlbumType;
				}
				set
				{
					this.SetAlbumType(value);
				}
			}
			public ulong SnsId
			{
				get
				{
					return this.result.SnsId;
				}
				set
				{
					this.SetSnsId(value);
				}
			}
			public Builder()
			{
				this.result = ExposeRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ExposeRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ExposeRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ExposeRequest other = this.result;
					this.result = new ExposeRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ExposeRequest.Builder Clear()
			{
				this.result = ExposeRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ExposeRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ExposeRequest.Builder(this.result);
				}
				return new ExposeRequest.Builder().MergeFrom(this.result);
			}
			public override ExposeRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ExposeRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is ExposeRequest)
				{
					return this.MergeFrom((ExposeRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ExposeRequest.Builder MergeFrom(ExposeRequest other)
			{
				return this;
			}
			public override ExposeRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ExposeRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ExposeRequest._exposeRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ExposeRequest._exposeRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasUserName = input.ReadString(ref this.result.userName_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasScene = input.ReadUInt32(ref this.result.scene_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 32u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasAlbumPhotoId = input.ReadString(ref this.result.albumPhotoId_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasAlbumType = input.ReadUInt32(ref this.result.albumType_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasSnsId = input.ReadUInt64(ref this.result.snsId_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ExposeRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ExposeRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ExposeRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ExposeRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ExposeRequest.Builder SetUserName(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasUserName = true;
				this.result.userName_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearUserName()
			{
				this.PrepareBuilder();
				this.result.hasUserName = false;
				this.result.userName_ = "";
				return this;
			}
			public ExposeRequest.Builder SetScene(uint value)
			{
				this.PrepareBuilder();
				this.result.hasScene = true;
				this.result.scene_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearScene()
			{
				this.PrepareBuilder();
				this.result.hasScene = false;
				this.result.scene_ = 0u;
				return this;
			}
			public ExposeRequest.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public ExposeRequest.Builder SetAlbumPhotoId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasAlbumPhotoId = true;
				this.result.albumPhotoId_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearAlbumPhotoId()
			{
				this.PrepareBuilder();
				this.result.hasAlbumPhotoId = false;
				this.result.albumPhotoId_ = "";
				return this;
			}
			public ExposeRequest.Builder SetAlbumType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasAlbumType = true;
				this.result.albumType_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearAlbumType()
			{
				this.PrepareBuilder();
				this.result.hasAlbumType = false;
				this.result.albumType_ = 0u;
				return this;
			}
			public ExposeRequest.Builder SetSnsId(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasSnsId = true;
				this.result.snsId_ = value;
				return this;
			}
			public ExposeRequest.Builder ClearSnsId()
			{
				this.PrepareBuilder();
				this.result.hasSnsId = false;
				this.result.snsId_ = 0uL;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UserNameFieldNumber = 2;
		public const int SceneFieldNumber = 3;
		public const int TypeFieldNumber = 4;
		public const int AlbumPhotoIdFieldNumber = 5;
		public const int AlbumTypeFieldNumber = 6;
		public const int SnsIdFieldNumber = 7;
		private static readonly ExposeRequest defaultInstance;
		private static readonly string[] _exposeRequestFieldNames;
		private static readonly uint[] _exposeRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUserName;
		private string userName_ = "";
		private bool hasScene;
		private uint scene_;
		private bool hasType;
		private uint type_;
		private bool hasAlbumPhotoId;
		private string albumPhotoId_ = "";
		private bool hasAlbumType;
		private uint albumType_;
		private bool hasSnsId;
		private ulong snsId_;
		private int memoizedSerializedSize = -1;
		public static ExposeRequest DefaultInstance
		{
			get
			{
				return ExposeRequest.defaultInstance;
			}
		}
		public override ExposeRequest DefaultInstanceForType
		{
			get
			{
				return ExposeRequest.DefaultInstance;
			}
		}
		protected override ExposeRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public string UserName
		{
			get
			{
				return this.userName_;
			}
		}
		public uint Scene
		{
			get
			{
				return this.scene_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public string AlbumPhotoId
		{
			get
			{
				return this.albumPhotoId_;
			}
		}
		public uint AlbumType
		{
			get
			{
				return this.albumType_;
			}
		}
		public ulong SnsId
		{
			get
			{
				return this.snsId_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasScene && this.hasType && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUserName)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.UserName);
				}
				if (this.hasScene)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Scene);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.Type);
				}
				if (this.hasAlbumPhotoId)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.AlbumPhotoId);
				}
				if (this.hasAlbumType)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.AlbumType);
				}
				if (this.hasSnsId)
				{
					num += CodedOutputStream.ComputeUInt64Size(7, this.SnsId);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ExposeRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] exposeRequestFieldNames = ExposeRequest._exposeRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, exposeRequestFieldNames[2], this.BaseRequest);
			}
			if (this.hasUserName)
			{
				output.WriteString(2, exposeRequestFieldNames[6], this.UserName);
			}
			if (this.hasScene)
			{
				output.WriteUInt32(3, exposeRequestFieldNames[3], this.Scene);
			}
			if (this.hasType)
			{
				output.WriteUInt32(4, exposeRequestFieldNames[5], this.Type);
			}
			if (this.hasAlbumPhotoId)
			{
				output.WriteString(5, exposeRequestFieldNames[0], this.AlbumPhotoId);
			}
			if (this.hasAlbumType)
			{
				output.WriteUInt32(6, exposeRequestFieldNames[1], this.AlbumType);
			}
			if (this.hasSnsId)
			{
				output.WriteUInt64(7, exposeRequestFieldNames[4], this.SnsId);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUserName)
			{
				num ^= this.userName_.GetHashCode();
			}
			if (this.hasScene)
			{
				num ^= this.scene_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasAlbumPhotoId)
			{
				num ^= this.albumPhotoId_.GetHashCode();
			}
			if (this.hasAlbumType)
			{
				num ^= this.albumType_.GetHashCode();
			}
			if (this.hasSnsId)
			{
				num ^= this.snsId_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ExposeRequest exposeRequest = value as ExposeRequest;
			return exposeRequest != null && (this.hasBaseRequest == exposeRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(exposeRequest.baseRequest_))) && (this.hasUserName == exposeRequest.hasUserName && (!this.hasUserName || this.userName_.Equals(exposeRequest.userName_))) && (this.hasScene == exposeRequest.hasScene && (!this.hasScene || this.scene_.Equals(exposeRequest.scene_))) && (this.hasType == exposeRequest.hasType && (!this.hasType || this.type_.Equals(exposeRequest.type_))) && (this.hasAlbumPhotoId == exposeRequest.hasAlbumPhotoId && (!this.hasAlbumPhotoId || this.albumPhotoId_.Equals(exposeRequest.albumPhotoId_))) && (this.hasAlbumType == exposeRequest.hasAlbumType && (!this.hasAlbumType || this.albumType_.Equals(exposeRequest.albumType_))) && (this.hasSnsId == exposeRequest.hasSnsId && (!this.hasSnsId || this.snsId_.Equals(exposeRequest.snsId_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("UserName", this.hasUserName, this.userName_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("Scene", this.hasScene, this.scene_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("AlbumPhotoId", this.hasAlbumPhotoId, this.albumPhotoId_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("AlbumType", this.hasAlbumType, this.albumType_, writer);
			GeneratedMessageLite<ExposeRequest, ExposeRequest.Builder>.PrintField("SnsId", this.hasSnsId, this.snsId_, writer);
		}
		public static ExposeRequest ParseFrom(byte[] data)
		{
			return ExposeRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ExposeRequest MakeReadOnly()
		{
			return this;
		}
		public static ExposeRequest.Builder CreateBuilder()
		{
			return new ExposeRequest.Builder();
		}
		public override ExposeRequest.Builder ToBuilder()
		{
			return ExposeRequest.CreateBuilder(this);
		}
		public override ExposeRequest.Builder CreateBuilderForType()
		{
			return new ExposeRequest.Builder();
		}
		public static ExposeRequest.Builder CreateBuilder(ExposeRequest prototype)
		{
			return new ExposeRequest.Builder(prototype);
		}
		static ExposeRequest()
		{
			ExposeRequest.defaultInstance = new ExposeRequest().MakeReadOnly();
			ExposeRequest._exposeRequestFieldNames = new string[]
			{
				"AlbumPhotoId",
				"AlbumType",
				"BaseRequest",
				"Scene",
				"SnsId",
				"Type",
				"UserName"
			};
			ExposeRequest._exposeRequestFieldTags = new uint[]
			{
				42u,
				48u,
				10u,
				24u,
				56u,
				32u,
				18u
			};
			object.ReferenceEquals(micromsg.Proto.ExposeRequest.Descriptor, null);
		}
	}
}
